<?php /* Smarty version 2.6.16, created on 2012-09-06 15:18:41
         compiled from contactus.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'contactus.tpl', 157, false),)), $this); ?>
<?php echo '
<!--<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="js/jQuery.functions.pack.js"></script>-->
<script language="javascript" src="js/cont.js"></script>


<script language="javascript">
var $ = jQuery.noConflict();

function CheckFields()
{
  
 
  if($("#name").isEmpty())
    	 $("#name").attr(\'style\',\'border:1px solid #FF0000\');
  if($("#subject_id").isEmpty())
  		 $("#subject_id").attr(\'style\',\'border:1px solid #FF0000\');
 if($("#msg").isEmpty())
  		 $("#msg").attr(\'style\',\'border:1px solid #FF0000\');
  if($("#email_1").isEmpty())
    	 $("#email_1").attr(\'style\',\'border:1px solid #FF0000\');		 	 
	 		 	 		 		 		 		 
  
   
  /*  if(document.getElementById(\'name\').value==\'\')
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please enter your name");
	$("#name").attr(\'style\',\'border:1px solid #FF0000\');
	//$(\'#FormErrorMsg\').fadeOut(2000);
    return false;
   }
    
	
	if(document.getElementById(\'email_1\').value==\'\')
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please enter your email");
	$("#email_1").attr(\'style\',\'border:1px solid #FF0000\');
	//$(\'#FormErrorMsg\').fadeOut(2000);
    return false;
   }*/
	
  /* if(!$("#email_1").emailCheck() || document.getElementById(\'#email_1\').value==\'\' ) 
   {
    $("#email_1").attr(\'style\',\'border:1px solid #FF0000\');	
    /*$(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please Enter a Valid email");
	$("#email_1").attr(\'style\',\'border:1px solid #FF0000\');*/
	//$(\'#FormFieldCheckErrorMsg\').fadeOut(2000);

   /* return false;
   }	*/ 
  
 /* if(document.getElementById(\'subject_id\').value==\'\')
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please choos your subject");
	$("#subject_id").attr(\'style\',\'border:1px solid #FF0000\');
	//$(\'#FormErrorMsg\').fadeOut(2000);
    return false;
   }
  
  if(document.getElementById(\'msg\').value==\'\')
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please enter your message");
	$("#msg").attr(\'style\',\'border:1px solid #FF0000\');
	//$(\'#FormErrorMsg\').fadeOut(2000);
    return false;
   }*/
  	

  	 

   
     
 
}







 function showhide_div(id)
{
	if(id == \'L\')
	{  
	  $(\'#avail_city\').show();
	  $(\'#avail_country\').show();	
	  $(\'#availability_city\').show();
	  $(\'#availability_country\').show();
	}
	if(id == \'O\')
	{  		
	  $(\'#avail_city\').hide();
	  $(\'#avail_country\').hide();
	  $(\'#availability_city\').hide();
	  $(\'#availability_country\').hide();
	}  			
} 
function keyCheck(eventObj, obj)
{
    var keyCode
 
    // Check For Browser Type
    if (document.all){
        keyCode=eventObj.keyCode
    }
    else{
        keyCode=eventObj.which
    }
  //alert(keyCode)
    var str=obj.value
 
    if(keyCode==46){
        if (str.indexOf(".")>0){
            return false
        }
    }
 
    if((keyCode<46 || keyCode >57)   &&   (keyCode >31)){ // Allow only integers and decimal points
        return false
    }
    
    return true
}
</script>
'; ?>

  
  
 <div class="right-panel">
    <div class="title">Contact Us</div>     
        <div class="clear"></div>
      
	 <div class="contact" id="contact"> 
      <div class="register">
	<form action=""  name="contact_us" id="contact_us" method="post" class="contactform">
	   <fieldset>
		 
		 	<label>Name :</label>
            <input type="text" name="c_name" id="c_name" class="con-req"  />
		 
           
			
			<p class="clear"></p>
            <label>Email :</label>
            <input name="c_email" id="c_email" type="text" class="con-req" />
           
            
            <p class="clear"></p>
            <label>Subject :</label>
            <select name="subject_id" id="subject_id" class="con-req">
			<option value="">SELECT</option>
		     <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['SubjectSql'],'selected' => $this->_tpl_vars['SubjectArr']['subject_name']), $this);?>

	        </select>
            <p class="clear"></p>
			<label>Massage :</label>
            <textarea name="c_comment" id="c_comment" rows="5" cols="5" class="con-req"></textarea>
            <p class="clear"></p>
            <label></label>
            <p class="clear"></p>
            <label>&nbsp;</label>
           <!-- <input name="submit" class="submit" value="Submit" type="submit" onclick='CheckFields()' />-->
			  
			  <input name="" type="button" class="submit"  value="Submit" onclick="contactus('contact_us')"/>	
            <input name="" class="cancel" value="Reset" type="reset" />
         </fieldset>
      </form>
      </div>
	  </div>
      <div class="clear"></div>
   </div>
  